package com.ruoyi.data.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
@ApiModel("工作状态")
public class TdataRtRs extends BaseEntity {

    private String id;

    private String roomId;

    private Integer loopNo;

    @ApiModelProperty("房间号")
    private String roomNo;

    @ApiModelProperty("设备号")
    private String meterNo;

    @ApiModelProperty("通讯状态 1通讯正常 4通讯错误")
    private Integer runStatus;

    @ApiModelProperty("工作状态 0关机 1开机 2强制开机")
    private Integer workStatus;

    @ApiModelProperty("断电原因 0正常开机 6强制关机")
    private Integer stopReason;

    @ApiModelProperty("断电原因 0正常开机 6强制关机")
    private List<Integer> stopReasons;

    @ApiModelProperty("当前电压")
    private BigDecimal vol;

    @ApiModelProperty("当前电流")
    private BigDecimal cur;

    @ApiModelProperty("有功功率")
    private BigDecimal yggl;

    @ApiModelProperty("额定功率")
    private BigDecimal edgl;

    @ApiModelProperty("用电量")
    private BigDecimal loopEq;

    @ApiModelProperty("采集时间")
    private LocalDateTime dt;

    @ApiModelProperty("楼座ID")
    private String buildId;

    @ApiModelProperty("楼座名称")
    private String buildName;

    @ApiModelProperty("学校ID")
    private String schoolId;

    @ApiModelProperty("学校名称")
    private String schoolName;

    @ApiModelProperty("楼层号")
    private Integer floorNo;

    @ApiModelProperty("楼层ID")
    private String floor;

}